/**
 * Created by liangdong.wu on 2016/3/14.
 */
myApp.controller('Hello',function($scope,$rootScope,$http) {

    initData();console.log("...")

    function initData() {
        $http.get("/getusertable").success(function(data) {
            $scope.users = data;
        }).error(function(data,status) {
            console.log(status)
        })
    }
})

